package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_user table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_user"
 */

public abstract class BaseCnUser  implements Serializable {

	public static String REF = "CnUser";
	public static String PROP_STATUS = "Status";
	public static String PROP_TYPE = "Type";
	public static String PROP_BIRTHDAY = "Birthday";
	public static String PROP_REMARK = "Remark";
	public static String PROP_KEYWORDS = "Keywords";
	public static String PROP_CITY = "City";
	public static String PROP_LASTIP = "Lastip";
	public static String PROP_PASSWORD = "Password";
	public static String PROP_JOB = "Job";
	public static String PROP_COLLEGE = "College";
	public static String PROP_SIGN = "Sign";
	public static String PROP_ADDRESS = "Address";
	public static String PROP_PIC = "Pic";
	public static String PROP_SINGLE = "Single";
	public static String PROP_SEX = "Sex";
	public static String PROP_TAG = "Tag";
	public static String PROP_SECURITY = "Security";
	public static String PROP_LOGINNUM = "Loginnum";
	public static String PROP_REGTIME = "Regtime";
	public static String PROP_PHONE = "Phone";
	public static String PROP_EMAIL = "Email";
	public static String PROP_LOGINID = "Loginid";
	public static String PROP_SPELL = "Spell";
	public static String PROP_SIMPSPELL = "Simpspell";
	public static String PROP_LASTLOGINTIME = "Lastlogintime";
	public static String PROP_AREA = "Area";
	public static String PROP_ID = "Id";
	public static String PROP_USERNAME = "Username";
	public static String PROP_YQR = "Yqr";
	public static String PROP_CFROM = "Cfrom";
	public static String PROP_THIRDID = "Thirdid";

	// constructors
	public BaseCnUser () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnUser (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String loginid;
	private java.lang.String username;
	private java.lang.String password;
	private java.lang.String sex;
	private java.lang.String tag;
	private java.lang.String address;
	private java.lang.String birthday;
	private java.lang.String pic;
	private java.lang.String single;
	private java.lang.String area;
	private java.lang.String city;
	private java.lang.String email;
	private java.lang.String college;
	private java.lang.String sign;
	private java.lang.String job;
	private java.lang.String spell;
	private java.lang.String simpspell;
	private java.lang.String keywords;
	private java.util.Date regtime;
	private java.util.Date lastlogintime;
	private java.lang.Integer loginnum;
	private java.lang.String status;
	private java.lang.String remark;
	private java.lang.String security;
	private java.lang.String lastip;
	private java.lang.String phone;
	private java.lang.String type;
	private java.lang.String yqr;
	private java.lang.String cfrom;
	private java.lang.String thirdid;


	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: LOGINID
	 */
	public java.lang.String getLoginid () {
		return loginid;
	}

	/**
	 * Set the value related to the column: LOGINID
	 * @param loginid the LOGINID value
	 */
	public void setLoginid (java.lang.String loginid) {
		this.loginid = loginid;
	}



	/**
	 * Return the value associated with the column: USERNAME
	 */
	public java.lang.String getUsername () {
		return username;
	}

	/**
	 * Set the value related to the column: USERNAME
	 * @param username the USERNAME value
	 */
	public void setUsername (java.lang.String username) {
		this.username = username;
	}



	/**
	 * Return the value associated with the column: PASSWORD
	 */
	public java.lang.String getPassword () {
		return password;
	}

	/**
	 * Set the value related to the column: PASSWORD
	 * @param password the PASSWORD value
	 */
	public void setPassword (java.lang.String password) {
		this.password = password;
	}


	public java.lang.String getThirdid() {
		return thirdid;
	}

	public void setThirdid(java.lang.String thirdid) {
		this.thirdid = thirdid;
	}

	/**
	 * Return the value associated with the column: SEX
	 */
	public java.lang.String getSex () {
		return sex;
	}

	/**
	 * Set the value related to the column: SEX
	 * @param sex the SEX value
	 */
	public void setSex (java.lang.String sex) {
		this.sex = sex;
	}

	public java.lang.String getTag() {
		return tag;
	}

	public void setTag(java.lang.String tag) {
		this.tag = tag;
	}

	/**
	 * Return the value associated with the column: ADDRESS
	 */
	public java.lang.String getAddress () {
		return address;
	}

	/**
	 * Set the value related to the column: ADDRESS
	 * @param address the ADDRESS value
	 */
	public void setAddress (java.lang.String address) {
		this.address = address;
	}



	/**
	 * Return the value associated with the column: BIRTHDAY
	 */
	public java.lang.String getBirthday () {
		return birthday;
	}

	/**
	 * Set the value related to the column: BIRTHDAY
	 * @param birthday the BIRTHDAY value
	 */
	public void setBirthday (java.lang.String birthday) {
		this.birthday = birthday;
	}



	/**
	 * Return the value associated with the column: PIC
	 */
	public java.lang.String getPic () {
		return pic;
	}

	/**
	 * Set the value related to the column: PIC
	 * @param pic the PIC value
	 */
	public void setPic (java.lang.String pic) {
		this.pic = pic;
	}



	/**
	 * Return the value associated with the column: SINGLE
	 */
	public java.lang.String getSingle () {
		return single;
	}

	/**
	 * Set the value related to the column: SINGLE
	 * @param single the SINGLE value
	 */
	public void setSingle (java.lang.String single) {
		this.single = single;
	}



	/**
	 * Return the value associated with the column: AREA
	 */
	public java.lang.String getArea () {
		return area;
	}

	/**
	 * Set the value related to the column: AREA
	 * @param area the AREA value
	 */
	public void setArea (java.lang.String area) {
		this.area = area;
	}



	/**
	 * Return the value associated with the column: CITY
	 */
	public java.lang.String getCity () {
		return city;
	}

	/**
	 * Set the value related to the column: CITY
	 * @param city the CITY value
	 */
	public void setCity (java.lang.String city) {
		this.city = city;
	}



	/**
	 * Return the value associated with the column: EMAIL
	 */
	public java.lang.String getEmail () {
		return email;
	}

	/**
	 * Set the value related to the column: EMAIL
	 * @param email the EMAIL value
	 */
	public void setEmail (java.lang.String email) {
		this.email = email;
	}



	/**
	 * Return the value associated with the column: COLLEGE
	 */
	public java.lang.String getCollege () {
		return college;
	}

	/**
	 * Set the value related to the column: COLLEGE
	 * @param college the COLLEGE value
	 */
	public void setCollege (java.lang.String college) {
		this.college = college;
	}



	/**
	 * Return the value associated with the column: SIGN
	 */
	public java.lang.String getSign () {
		return sign;
	}

	/**
	 * Set the value related to the column: SIGN
	 * @param sign the SIGN value
	 */
	public void setSign (java.lang.String sign) {
		this.sign = sign;
	}



	/**
	 * Return the value associated with the column: JOB
	 */
	public java.lang.String getJob () {
		return job;
	}

	/**
	 * Set the value related to the column: JOB
	 * @param job the JOB value
	 */
	public void setJob (java.lang.String job) {
		this.job = job;
	}


	public java.lang.String getSpell() {
		return spell;
	}

	public void setSpell(java.lang.String spell) {
		this.spell = spell;
	}

	public java.lang.String getSimpspell() {
		return simpspell;
	}

	public void setSimpspell(java.lang.String simpspell) {
		this.simpspell = simpspell;
	}

	/**
	 * Return the value associated with the column: KEYWORDS
	 */
	public java.lang.String getKeywords () {
		return keywords;
	}

	/**
	 * Set the value related to the column: KEYWORDS
	 * @param keywords the KEYWORDS value
	 */
	public void setKeywords (java.lang.String keywords) {
		this.keywords = keywords;
	}



	/**
	 * Return the value associated with the column: REGTIME
	 */
	public java.util.Date getRegtime () {
		return regtime;
	}

	/**
	 * Set the value related to the column: REGTIME
	 * @param regtime the REGTIME value
	 */
	public void setRegtime (java.util.Date regtime) {
		this.regtime = regtime;
	}



	/**
	 * Return the value associated with the column: LASTLOGINTIME
	 */
	public java.util.Date getLastlogintime () {
		return lastlogintime;
	}

	/**
	 * Set the value related to the column: LASTLOGINTIME
	 * @param lastlogintime the LASTLOGINTIME value
	 */
	public void setLastlogintime (java.util.Date lastlogintime) {
		this.lastlogintime = lastlogintime;
	}



	/**
	 * Return the value associated with the column: LOGINNUM
	 */
	public java.lang.Integer getLoginnum () {
		return loginnum;
	}

	/**
	 * Set the value related to the column: LOGINNUM
	 * @param loginnum the LOGINNUM value
	 */
	public void setLoginnum (java.lang.Integer loginnum) {
		this.loginnum = loginnum;
	}



	/**
	 * Return the value associated with the column: STATUS
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: STATUS
	 * @param status the STATUS value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: REMARK
	 */
	public java.lang.String getRemark () {
		return remark;
	}

	/**
	 * Set the value related to the column: REMARK
	 * @param remark the REMARK value
	 */
	public void setRemark (java.lang.String remark) {
		this.remark = remark;
	}



	/**
	 * Return the value associated with the column: security
	 */
	public java.lang.String getSecurity () {
		return security;
	}

	/**
	 * Set the value related to the column: security
	 * @param security the security value
	 */
	public void setSecurity (java.lang.String security) {
		this.security = security;
	}



	/**
	 * Return the value associated with the column: lastip
	 */
	public java.lang.String getLastip () {
		return lastip;
	}

	/**
	 * Set the value related to the column: lastip
	 * @param lastip the lastip value
	 */
	public void setLastip (java.lang.String lastip) {
		this.lastip = lastip;
	}



	/**
	 * Return the value associated with the column: phone
	 */
	public java.lang.String getPhone () {
		return phone;
	}

	/**
	 * Set the value related to the column: phone
	 * @param phone the phone value
	 */
	public void setPhone (java.lang.String phone) {
		this.phone = phone;
	}


	public java.lang.String getYqr() {
		return yqr;
	}

	public void setYqr(java.lang.String yqr) {
		this.yqr = yqr;
	}
	

	public java.lang.String getCfrom() {
		return cfrom;
	}

	public void setCfrom(java.lang.String cfrom) {
		this.cfrom = cfrom;
	}

	/**
	 * Return the value associated with the column: TYPE
	 */
	public java.lang.String getType () {
		return type;
	}

	/**
	 * Set the value related to the column: TYPE
	 * @param type the TYPE value
	 */
	public void setType (java.lang.String type) {
		this.type = type;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnUser)) return false;
		else {
			com.lovejes.cuniao.domain.CnUser cnUser = (com.lovejes.cuniao.domain.CnUser) obj;
			if (null == this.getId() || null == cnUser.getId()) return false;
			else return (this.getId().equals(cnUser.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}